package diff.viewer;

import java.awt.Color;
import diff.Difference;

/**
 * @author WL
 */
public class DiffColor 
{
    public static Color colorAdded =      new Color(150, 255, 150);
    public static Color colorChanged =    new Color(160, 200, 255);
    public static Color colorRemoved =    new Color(255, 160, 180);
    public static Color colorBorder =     new Color(102, 102, 102);
    
    
    public static Color getColor(Difference ad) {
        if (ad.getType() == Difference.ADD) {
            return DiffColor.colorAdded;
        }
        if (ad.getType() == Difference.CHANGE) {
            return DiffColor.colorChanged;
        }
        return DiffColor.colorRemoved;
    }
}
